<%@ page import="com.oval.util.JspHelper" %>
<%@ page contentType = "text/html;charset=UTF-8" %>
<%@ page language="java" %>
<%@ page import="java.util.*" %>
<%@ page import="com.oval.foundation.metadata.engine.*" %>
<%@ page import="com.oval.foundation.container.CoreTableContainer" %>




<% String coreTableName = request.getParameter("name");
   OvalCoreTable coreTable = (OvalCoreTable)CoreTableContainer.findCoreTable(coreTableName);
   %>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="css/chinese/csscontent.css" type="text/css">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td background="images/chinese/title_bg.gif"><img src="images/chinese/title_bg.gif" width="3" height="29"></td>
  </tr>
</table>

<table width="100%" border="0" cellspacing="0" cellpadding="2">
  <tr> 
    <td width="23%" class="red_title">CoreTable Name:</td>
    <td><%=JspHelper.filterNull( coreTableName )%></td>
  </tr>
</table>
<script>
  function toggleCols()
  {
    if(colsHide.style.display=='none')
    {
      colsHide.style.display = 'inline';
      colsShow.style.display = 'none';
    }
    else
    {
      colsShow.style.display = 'inline';
      colsHide.style.display = 'none';
    }
  }
</script>
<table width="100%" border="0" cellspacing="1" cellpadding="2" bgcolor="#999999">
<tbody id="colsHide" onclick="toggleCols()" style="display:inline;">
  <tr> 
    <td colspan="9" class="td_title_bg"><img src="images/chinese/arrow3.gif"> 
      Columns
    </td>
  </tr>
</tbody>
<tbody id="colsShow" onclick="toggleCols()" style="display:none;">
  <tr> 
    <td colspan="9" class="td_title_bg">
      <img src="images/chinese/arrow2.gif"> 
      Columns
    </td>
  </tr>
  <tr class="td_bg_row">
    <td class="td_center">Column Name</td>
    <td class="td_center">Column Type</td>
    <td class="td_center">Is Primary Key</td>
    <td class="td_center">Is Usable</td>
    <td class="td_center">Column Width</td>
    <td class="td_center">Format On Insert</td>
    <td class="td_center">Format On Update</td>
    <td class="td_center">Format On Output</td>
    <td class="td_center">Format On Display</td>

  </tr>
  <% Iterator it = coreTable.m_Colms.values().iterator();
     while(it.hasNext())
     {
       OvalCoreColumn occ = (OvalCoreColumn)it.next();
       %>
  <tr class="td_bg1">
    <td><%=JspHelper.filterNull( occ.getName())%></td>
    <td><%=JspHelper.filterNull( occ.getType())%></td>
    <td><%=JspHelper.filterNull( new Boolean(occ.getIsPrimaryKey()))%></td>
    <td><%=JspHelper.filterNull( new Boolean(occ.getIsUsable()))%></td>
    <td><%=JspHelper.filterNull( occ.getColumnWidth())%></td>
    <td><%=JspHelper.filterNull( occ.getFormatInType())%></td>
    <td><%=JspHelper.filterNull( occ.getFormatUpType())%></td>
    <td><%=JspHelper.filterNull( occ.getFormatOutType())%></td>
    <td><%=JspHelper.filterNull( occ.getFormatPageType())%></td>
  </tr>
  <% } %>
</tbody>
</table>
</body>
</html>

